package com.pearlsoft.webapp.rms.projectuse;

import java.util.List;

import com.pearlsoft.webapp.core.annotation.QueryHandlerComponent;
import com.pearlsoft.webapp.core.dataset.DataSet;
import com.pearlsoft.webapp.core.dataset.Query;
import com.pearlsoft.webapp.core.dataset.Record;
import com.pearlsoft.webapp.core.web.basehandler.AbsBaseQueryHandler;
import com.pearlsoft.webapp.core.web.session.SessionProfile;
import com.pearlsoft.webapp.core.web.util.HttpUtil;
import com.pearlsoft.webapp.rms.projectuse.service.ProjectuseService;;

@QueryHandlerComponent(name = "ProjectuseQueryHandler")
public class ProjectuseQueryHandler extends AbsBaseQueryHandler{

	@Override
	public void advSearch(Query query, DataSet ds) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void getEntity(Query query, DataSet ds) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void quickSearch(Query query, DataSet ds) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void handler(Query query, DataSet ds) throws Exception {

		ProjectuseService projectuseService = this.getBean("projectuseService", ProjectuseService.class);
		List<Record> list = projectuseService.getProjectuseList();
		ds.setRecords(list);
		
	}
	
}
